package com.mvp.shq.washer.ui.login;

import com.mvp.shq.washer.entity.BaseResult;
import com.mvp.shq.washer.entity.TokenBean;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;

/**
 * Created by Administrator on 2017/8/19.
 */

public class LoginModel implements LoginConstract.Model {
    @Override
    public Observable<BaseResult<TokenBean>> login(String mobile, String pwd, String timestamp, String sign) {
        return Api.getInstance().service
                .login(mobile,pwd,timestamp,sign)
                .compose(RxSchedulers.io_main());
    }
}
